import request from '@/utils/request'

// 查询预处理列表
export function listPreprocess(query) {
  return request({
    url: '/cmenonmetal/preprocess/list',
    method: 'get',
    params: query
  })
}

// 查询预处理详细
export function getPreprocess(id) {
  return request({
    url: '/cmenonmetal/preprocess/' + id,
    method: 'get'
  })
}

// 新增预处理
export function addPreprocess(data) {
  return request({
    url: '/cmenonmetal/preprocess',
    method: 'post',
    data: data
  })
}

// 修改预处理
export function updatePreprocess(data) {
  return request({
    url: '/cmenonmetal/preprocess',
    method: 'put',
    data: data
  })
}

// 删除预处理
export function delPreprocess(id) {
  return request({
    url: '/cmenonmetal/preprocess/' + id,
    method: 'delete'
  })
}
